package com.my.zuji.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.my.zuji.domain.bookkeeping.BookingCategory;

public interface CategoryRepository extends JpaRepository<BookingCategory,Long>,
		JpaSpecificationExecutor<BookingCategory> {
	BookingCategory findByName(String Name);
	List<BookingCategory> findByParentOrderBySortIndexAsc(BookingCategory parentCategory);
}